<div style="width:380px;height:60px;border: 1px solid #eee;text-align: center;float: left">
    <div style="margin-bottom: 3px">
        <span style="font-size: 16px">计算公式</span>
    </div>
    <input id="customsFeeCostid" class="easyui-numberbox" data-options="readonly:'true',precision:3,prompt:'总运费',onChange:customsFeeCostOnChange"
           style="width: 50px">/
    <input id="customsFeeCostId1" class="easyui-numberbox"  data-options="readonly:'true',prompt:'订单量',onChange:customsFeeCostOnChange"
           style="width: 50px">x
    <input id="customsFeeCostId2" class="easyui-numberbox" data-options="precision:3,prompt:'系数',onChange:customsFeeCostOnChange" style="width:40px">

</div>
<script>

    function customsFeeCostOnChange(newValue,oldValue) {
        customsFeeCostOnChangeFun()
    }

    function customsFeeCostOnChangeFun() {
        //总运费赋值
        var a= $('#freight').numberbox('getValue')
        $('#customsFeeCostid').numberbox('setValue',a)
        var b=Number($("#customsFeeCostId1").numberbox('getValue'));
        var c=Number($("#customsFeeCostId2").numberbox('getValue'));
        //计算 出口报关费用\检查费用
        if (b==0){
            $("#customs_fee").numberbox("setValue",0);
        }else {
            $("#customs_fee").numberbox("setValue",a/b*c);
        }

    }

</script>